package com.example.handle;

import lombok.extern.slf4j.Slf4j;
import org.springframework.util.ErrorHandler;

/**
 * @application:
 * @author: LiYuhang
 * @Date: 2021/5/30 18:14
 * @version: 0.1
 * @Description :
 * @Modified By:
 */
@Slf4j
public class MyErrorHandle implements ErrorHandler {
    @Override
    public void handleError(Throwable throwable) {
        throwable.printStackTrace();
        log.error("[MQ handler exception] " + throwable.getMessage());
    }
}
